package com.ruoyi.cmenonmetal.service.impl;

import com.ruoyi.cmenonmetal.domain.ZsOrderUrl;
import com.ruoyi.cmenonmetal.mapper.ZsOrderUrlMapper;
import com.ruoyi.cmenonmetal.service.IZsOrderUrlService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * 上传与下载Service业务层处理
 * 
 * @author ruoyi
 * @date 2022-03-01
 */
@Service
public class ZsOrderUrlServiceImpl implements IZsOrderUrlService 
{
    @Autowired
    private ZsOrderUrlMapper zsOrderUrlMapper;

    /**
     * 查询上传与下载
     * 
     * @param id 上传与下载主键
     * @return 上传与下载
     */
    @Override
    public ZsOrderUrl selectZsOrderUrlById(Long id)
    {
        return zsOrderUrlMapper.selectZsOrderUrlById(id);
    }

    /**
     * 查询上传与下载列表
     * 
     * @param zsOrderUrl 上传与下载
     * @return 上传与下载
     */
    @Override
    public List<ZsOrderUrl> selectZsOrderUrlList(ZsOrderUrl zsOrderUrl)
    {
        return zsOrderUrlMapper.selectZsOrderUrlList(zsOrderUrl);
    }

    /**
     * 新增上传与下载
     * 
     * @param zsOrderUrl 上传与下载
     * @return 结果
     */
    @Override
    public int insertZsOrderUrl(ZsOrderUrl zsOrderUrl)
    {
        return zsOrderUrlMapper.insertZsOrderUrl(zsOrderUrl);
    }

    /**
     * 修改上传与下载
     * 
     * @param zsOrderUrl 上传与下载
     * @return 结果
     */
    @Override
    public int updateZsOrderUrl(ZsOrderUrl zsOrderUrl)
    {
        return zsOrderUrlMapper.updateZsOrderUrl(zsOrderUrl);
    }

    /**
     * 批量删除上传与下载
     * 
     * @param ids 需要删除的上传与下载主键
     * @return 结果
     */
    @Override
    public int deleteZsOrderUrlByIds(Long[] ids)
    {
        return zsOrderUrlMapper.deleteZsOrderUrlByIds(ids);
    }

    /**
     * 删除上传与下载信息
     * 
     * @param id 上传与下载主键
     * @return 结果
     */
    @Override
    public int deleteZsOrderUrlById(Long id)
    {
        return zsOrderUrlMapper.deleteZsOrderUrlById(id);
    }
}
